package com.magic.zhixin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.List;

@Data
@Entity
@ApiModel("用户问题详情")
public class UserQuestionDetail extends BaseEntity {
    @ApiModelProperty("用户问题id")
    private Long userQuestionId;
    @ApiModelProperty("问题id")
    private Long questionId;
    @ApiModelProperty("问题名称")
    @Column(columnDefinition = "text")
    private String questionName;
    @ApiModelProperty("正确答案id")
    private Long answerId;
    @ApiModelProperty("正确答案内容")
    private String answerContent;

    @Transient
    @ApiModelProperty("问题所有答案")
    private List<Answer> answers;

}
